CanSetCookieCallback

The callback is invoked to check if the given cookie can be set or not.

Use the can method to allow the engine to set the cookie.

Use the cannot} method to disallow the engine to set the cookie.

If the callback throws an exception, the can method will be invoked.

Types

Link copied to clipboard
interface Params
The parameters of the CanSetCookieCallback.
Link copied to clipboard
interface Response
A response for CanSetCookieCallback.

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.